package com.jevons.muffin.socket;

import okhttp3.Response;
import okio.ByteString;

/**
 * WebSocket监听器
 * @author linaisheng
 * Created at 2019/4/23.
 */

public abstract class WsStatusListener {

    public void onOpen(Response response) {

    }

    public void onMessage(String text) {}

    public void onMessage(ByteString bytes) {}

    public void onReconnect() {}

    public void onClosing(int code, String reason) {}

    public void onClosed(int code, String reason) {}

    public void onFailure(Throwable t, Response response) {}

}
